Ext.define('GW.view.VersePanel', {
	extend: 'Ext.panel.Panel',
	alias: 'widget.versepanel',
	border: false,
	
	setVerses: function(verses){
		var me = this;
		// Clear old verses
		var oldVerses = me.query('verse');
		Ext.Array.each(oldVerses, function(oldVerse) {
			me.remove(oldVerse);
		});
		
		if(verses.length > 0){
			// Now add new verses
			me.add(verses);
		}
		
		return this;
	}
});